﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using NUnit.Framework;
//using Moq;
//using PPIDesktopClient.Interface;
//using PPIDesktopClient.Entities;

//namespace PPITest
//{
//    [TestFixture]
//    public class TestVisitor
//    {
//        [Test]
//        public void DissasociateImageToPole()
//        {
//            EVendor_Visit_XMissionStructures_Image _DissasociatedImage = new EVendor_Visit_XMissionStructures_Image();
//            _DissasociatedImage.Pole.Id = Int32.MinValue;

//            Mock<IImageService> _MockedImageService = new Mock<IImageService>();
//            _MockedImageService.Expect(x => x.Dissasociate()).Returns(_DissasociatedImage);

//            Assert.AreEqual(Int32.MinValue,_MockedImageService.Object.Dissasociate().Pole.Id);
//        }
//        [Test]
//        public void AssociateImageToPole()
//        {
//            EVendor_Visit_XMissionStructures_Image _AssociatedImage = new EVendor_Visit_XMissionStructures_Image();
//            _AssociatedImage.Pole.Id = 3;

//            EVendor_Visit_XMissionStructures_Pole _PoleToAssociate = new EVendor_Visit_XMissionStructures_Pole();
//            _PoleToAssociate.Id = 3;


//            Mock<IImageService> _MockedImageService = new Mock<IImageService>();
//            _MockedImageService.Expect(x => x.Associate(_PoleToAssociate)).Returns(_AssociatedImage);

//            Assert.AreEqual(_PoleToAssociate, _MockedImageService.Object.Associate(_PoleToAssociate).Pole);
            
//            _PoleToAssociate.Id = 5;
//            Assert.AreNotEqual(_PoleToAssociate, _MockedImageService.Object.Associate(_PoleToAssociate).Pole);
//        }
        
//        [Test]
//        public void DeleteImage()
//        {


//        }


//        [Test]
//        public void TestMocks()
//        {
//            //Mock<IVisitEditor> newVendor = new Mock<IVisitEditor>();
//            //newVendor.ExpectGet(x=>x.Project).res

//            Mock<IVisitEditor> testingObject = new Mock<IVisitEditor>();
//            testingObject.Expect(x => x.Id).Returns(1);

//            Assert.AreEqual(testingObject.Object.Id, 1);

//        }
//    }
//}
